package com.tx.activemq;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;
import java.util.UUID;

@Data
@AllArgsConstructor
public class DefaultMessage implements Serializable {
    private String uuid;
    private Object message;

    public static DefaultMessage getInstance() {
        String uuid = UUID.randomUUID().toString().replace("-", "");
        return new DefaultMessage(uuid, uuid);
    }
}
